<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        *{
            margin: 0px;
            padding: 0px;
        }
        .box{
            display: flex;
            width: 500px;
            height: 450px;
            border: 2px solid red;
        }
        .item{
            width: 300px;
            height: 100px;
            text-align: center;
            line-height: 100px;
            border: 2px solid yellowgreen;
        }
    </style>
</head>
<body>
    <!-- 容器 -->
    <div class="box">
        <!-- 项目 -->

        <!-- 1 1 1 表示压缩比例一样  -->
        <!-- <div class="item" style="flex-shrink: 1;">one</div>
        <div class="item" style="flex-shrink: 1;">two</div>
        <div class="item" style="flex-shrink: 1;">three</div> -->

        <!-- 值越大，压缩的越狠 -->
        <div class="item" style="flex-shrink: 1;">one</div>
        <div class="item" style="flex-shrink: 6;">two</div>
        <div class="item" style="flex-shrink: 10;">three</div>
    </div>
</body>
</html>